package cn.wolfcode.qo;

import cn.wolfcode.util.UserContext;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Notice2QueryObject extends QueryObject{
    //分页查讯的时候带参数进去

    public Boolean getAdmin(){
        //小写boolean的属性是is
        return UserContext.getCurrentUser().isAdmin();
    }
}
